package com.accompany.service;

import com.accompany.entity.Favorite;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 收藏表 服务类
 * </p>
 *
 * @author DC
 * @since 2024-12-26
 */
public interface FavoriteService extends IService<Favorite> {

    Page<Favorite> getPaginatedFavorites(Integer page, Integer size);

    List<Favorite> getAllFavorites();

    Favorite getFavoriteById(Long id);

    void updateFavorite(Favorite favorite);

    void deleteFavorite(Long id);

    void createFavorite(Favorite favorite);
}
